package ycl.schedule.res;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import ycl.common.constants.BaseConstant;
import ycl.common.models.BaseEntityRes;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户日程返回体
 * </p>
 *
 * @author ycl
 * @since 2022-06-23 20:21:11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("schedule")
@ApiModel(value = "Schedule对象", description = "用户日程返回体")
public class ScheduleRes extends BaseEntityRes {

	private static final long serialVersionUID = 1L;

	@Schema(description = "事件名")
	private String name;

	@Schema(description = "所属用户")
	private Long userId;

	@Schema(description = "任务名")
	private String task;

	@Schema(description = "标签名")
	private String level;

	@Schema(description = "开始时间")
	@JsonFormat(pattern = BaseConstant.DATE_TIME_PATTERN, timezone = BaseConstant.DATE_TIME_GMT8)
	private LocalDateTime startTime;

	@Schema(description = "结束时间")
	@JsonFormat(pattern = BaseConstant.DATE_TIME_PATTERN, timezone = BaseConstant.DATE_TIME_GMT8)
	private LocalDateTime endTime;

	@Schema(description = "状态，0未开始，1待办，2进行，3完成")
	private Integer status;

	@Schema(description = "经度")
	private BigDecimal lat;

	@Schema(description = "纬度")
	private BigDecimal lng;

	@Schema(description = "地点")
	private String address;

	@Schema(description = "备注")
	private String remark;




}
